<template>
  <component :is="comp" />
</template>

<script lang="ts" setup>
  import { computed } from 'vue';
  import type { Component } from 'vue';
  import { getPage, PageName } from '../../pages/pages';

  const props = defineProps<{
    view: PageName;
  }>();

  const comp = computed<Component>(() => getPage(props.view));
</script>

<style scoped></style>
